
package com.mu.rai.services;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for interval complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="interval">
 *   &lt;complexContent>
 *     &lt;extension base="{http://services.rai.mu.com}modelObject">
 *       &lt;sequence>
 *         &lt;element name="duration" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="end_rate" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="iterations" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;choice>
 *           &lt;element name="ramp" type="{http://services.rai.mu.com}ramp"/>
 *           &lt;element name="step" type="{http://services.rai.mu.com}step"/>
 *         &lt;/choice>
 *         &lt;element name="start_rate" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "interval", propOrder = {
    "duration",
    "endRate",
    "iterations",
    "ramp",
    "step",
    "startRate"
})
public class Interval
    extends ModelObject
{

    protected int duration;
    @XmlElement(name = "end_rate")
    protected int endRate;
    protected int iterations;
    protected Ramp ramp;
    protected Step step;
    @XmlElement(name = "start_rate")
    protected int startRate;

    /**
     * Gets the value of the duration property.
     * 
     */
    public int getDuration() {
        return duration;
    }

    /**
     * Sets the value of the duration property.
     * 
     */
    public void setDuration(int value) {
        this.duration = value;
    }

    /**
     * Gets the value of the endRate property.
     * 
     */
    public int getEndRate() {
        return endRate;
    }

    /**
     * Sets the value of the endRate property.
     * 
     */
    public void setEndRate(int value) {
        this.endRate = value;
    }

    /**
     * Gets the value of the iterations property.
     * 
     */
    public int getIterations() {
        return iterations;
    }

    /**
     * Sets the value of the iterations property.
     * 
     */
    public void setIterations(int value) {
        this.iterations = value;
    }

    /**
     * Gets the value of the ramp property.
     * 
     * @return
     *     possible object is
     *     {@link Ramp }
     *     
     */
    public Ramp getRamp() {
        return ramp;
    }

    /**
     * Sets the value of the ramp property.
     * 
     * @param value
     *     allowed object is
     *     {@link Ramp }
     *     
     */
    public void setRamp(Ramp value) {
        this.ramp = value;
    }

    /**
     * Gets the value of the step property.
     * 
     * @return
     *     possible object is
     *     {@link Step }
     *     
     */
    public Step getStep() {
        return step;
    }

    /**
     * Sets the value of the step property.
     * 
     * @param value
     *     allowed object is
     *     {@link Step }
     *     
     */
    public void setStep(Step value) {
        this.step = value;
    }

    /**
     * Gets the value of the startRate property.
     * 
     */
    public int getStartRate() {
        return startRate;
    }

    /**
     * Sets the value of the startRate property.
     * 
     */
    public void setStartRate(int value) {
        this.startRate = value;
    }

}
